import Service.impl.StuSumImpl;
import xml改纯注解.config.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext ctx=new AnnotationConfigApplicationContext(SpringConfig.class);
        StuSumImpl stuSum = ctx.getBean("stuSum", StuSumImpl.class);
        stuSum.save();
    }
}
